<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>login_code</title>
</head>
<body>
	<form action="/account/login_code" method="post">
		{% raw xsrf_form_html() %}
		<p><input name="user" type="text" placeholder="用户"></p>
		<p><input name="password" type="text" placeholder="密码"></p>
		<p>
			<input name="code" type="text" placeholder="验证码">
			<img id="imgCode" src="/account/login_checkcode" onclick="ChangeCode();">
		</p>
		<input type="submit" value="提交"> <span style="color: red">{{ status }}</span>
	</form>

	<script type="text/javascript">
		function ChangeCode() {
		    var code = document.getElementById('imgCode');
		    code.src += '?';
        }
	</script>



</body>
</html>